
	<div class="container">
		<!-- 表格，表头里定义了表要显示的字段，data-formatter 里只能跟一个方法名 -->
		<table id="mytable" class="datagrid" data-options="
			parentIdField: 'parentId',			
			treeShowField: 'name',
			pagination: false,
			search: false,  
			treegrid:true,
			buttons:[$.fn.datagrid.toolbar.buttons.add,$.fn.datagrid.toolbar.buttons.edit,$.fn.datagrid.toolbar.buttons.remove]
		">
			<thead>
				<tr>
					<th data-checkbox="true"></th>
					<th data-field="name">部门名称</th>
				</tr>
			</thead>
		</table>
	</div>
	<script type="text/javascript">
		$('#mytable').datagrid({
		 	path:'menu',
		 	url:'list',
		 	
		})
	</script>